package fe.pong.tennis.sound;

import flash.media.Sound;
import openfl.Assets;


class SoundManager
{
	
	private var soundshoot:flash.media.Sound;
	private var publicclap:flash.media.Sound;
	

	public function new() 
	{
		soundshoot = Assets.getSound ("soundshoot");
		publicclap = Assets.getSound ("publicclap");
	}
	
	public function hitBall() {
		soundshoot.play();
	}
	
	public function publicClap() {
		publicclap.play();
	}
}